package com.mew.game.provide;

import com.mew.common.rest.sas.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Component
@FeignClient(value = "mew-kernel-sas")
public interface SasFeignService {


    @PostMapping(value = "/ee/enter")
    @ResponseBody
    Integer enterGame(@RequestBody EnterGameSasRequest request);

    @PostMapping(value = "/ee/exit")
    @ResponseBody
   Integer exitGame(@RequestBody ExitGameSasRequest request);


    @PostMapping(value = "/play/chess")
    @ResponseBody
    Integer playChess(@RequestBody List<PlayChessSasRequest> requests);

    @PostMapping(value = "/play/slots")
    @ResponseBody
    Integer playSlots(@RequestBody PlaySlotsSasRequest request);

}
